import Request from '@/utils/request'

export function versionList(params) {
    return Request.get(
        'version/list',
        params
    )
}

export function versionAdminList(params) {
    return Request.get(
        'version/admin/list',
        params
    )
}

export function versionAdminDetail(version_id) {
    return Request.get(
        `version/admin/list/${version_id}`
    )
}

export function versionAdd(params) {
    return Request.post(
        'version/add',
        params
    )
}

export function versionEdit(version_id,params) {
    return Request.put(
        `version/edit/${version_id}`,
        params
    )
}

export function versionDelete(version_id) {
    return Request.delete(
        `version/edit/${version_id}`,
    )
}
